package com.cloud.utils.base;


import lombok.Data;

/**
 * 分页查询参数
 *
 * @param <T>
 */
@Data
public class PageSearch<T> {

    private static final int DEFAULT_PAGE_NUM = 1;
    private static final int DEFAULT_PAGE_SIZE = 10;
    /**
     * 页码
     */

    private Integer pageNum = DEFAULT_PAGE_NUM;
    /**
     * 每页行数
     */

    private Integer pageSize = DEFAULT_PAGE_SIZE;

    /**
     * 需要排序的字段
     */
    private String sortName;

    /**
     * 排序顺序
     */
    private String sortOrder;

    private T domain;


}
